function [xdata, ydata, ydataerr] = get_two_cell_data_sets(datap)

xdata       = zeros(length(datap.IR_current),1);
ydata       = zeros(length(datap.IR_current),2);
ydataerr    = zeros(length(datap.IR_current),2);

for ii = 1:length(datap.IR_current)
    xdata(ii,:)     = eval(cell2mat(regexp(datap.IR_current{ii},'\d*','Match')));
    ydata(ii,:)     = [datap.avg_time{ii}(1) datap.avg_time{ii}(2)];
    ydataerr(ii,:)  = [datap.std_time{ii}(1) datap.std_time{ii}(2)];
end

end